QuickTime 4 API Documentation

3D Graphics Programming with QuickDraw 3D 1.5.4

Previous | QD3D Book | Overview | Chapter Contents | Next |

Top Cap Attribute Sets

Labels

ASCII
TopCapAttributeSet
Binary
tcas (= 0x74636173 )

Data Format

No data.

Data Size

0

Description

A top cap attribute set is used to attach attributes to the top cap of a cylinder that has an optional top cap. The attributes to be assigned to the cap are placed in a regular attribute set in the usual manner. Then the container holding the regular attribute set and the attributes is placed in the cap attribute set by including that container and the cap attribute set in a further container.

The attributes associated with a top cap attribute set are not drawn if the parent object lacks a top cap.

Parent Hierarchy

Data, cap data.

Parent Objects

Cylinder (always).

Child Objects

Attribute set (optional). An empty top cap attribute set has no effect.

Example

Container (
    Cylindner ( ... )
    Caps ( Top )
    Container (
        TopCapAttributeSet ( )
        Container (
            AttributeSet ( )
            DiffuseColor ( 0.2 0.9 0.4 )
        )
    )
)

© 1997 Apple Computer, Inc.

Previous | QD3D Book | Overview | Chapter Contents | Next |